package com.winai.launcher.BroadcastReceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.ks.projectbasictools.utils.LogUtils;
import com.winai.launcher.common.GlobalPublisher;
import com.winai.launcher.constant.Constant;
import com.winai.launcher.manager.DeviceInfoManager;

/**
 * 作者：康少
 * 时间：2020/4/9
 * 说明：从SystemUI执行跳转
 */
public class StartActReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        LogUtils.i("监听到从SystemUI跳转广播，intent.getAction() = " + intent.getAction());
        if (intent.getAction() != null && intent.getAction().equals(Constant.action_startAct)) {
            GlobalPublisher.Notify(GlobalPublisher.CLOSE_ALARM_CLOCK);//关闭闹钟
        }
    }
}
